/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uk.ac.cam.ccn.sac.modules.contacts;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Thomas
 */
public class Contact implements Serializable{
    public static final String USER_NAME="username";
    public static final String AUDIO_STREAM="audiostream";
    public static final String PRIVATE_MESSAGE="privatemessage";
    private final Map<String, String> attributes = new HashMap<String, String>();
    
    public Contact(){
        
    }
    
    public void addAttribute(String key, String value){
        attributes.put(key, value);
    }
    
    public String getAttribute(String key){
        if(!attributes.containsKey(key))
            return null;
        return attributes.get(key);
    }
}
